package GreatBattleOfAircraft.utils;

import GreatBattleOfAircraft.obj.*;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

public class GameUtils {

    public static Image bgImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/bg.png");//背景图
    public static Image boomImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/boom1.png");//爆炸图
    public static Image phaneImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/phane.png");//玩家飞机图
    public static Image shellImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/shell.png");//玩家发射物图
    public static Image enemyImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/enemy2.png");//敌方飞机图
    public static Image bossImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/boss1.png");//boss图
    public static Image bulletImg = Toolkit.getDefaultToolkit().getImage("./images/GreatBattleOfAircraft/shell_f.png");//Boss发射物图

    //所有物体集合
    public static List<GameObj> gameObjList = new ArrayList<>();

    //我方发射物集合
    public static List<ShellObj> shellObjList = new ArrayList<>();

    //敌机的集合
    public static List<EnemyObj> enemyObjList = new ArrayList<>();

    //敌机发射物集合
    public static List<BulletObj> bulletObjList = new ArrayList<>();

    //爆炸效果元素集合
    public static List<BoomObj> boomObjList = new ArrayList<>();

    //删除元素集合
    public static List<GameObj> removeObjList = new ArrayList<>();


    public static void drawWord(Graphics graphics1,String string,Color color,int size,int x,int y){
        graphics1.setColor(color);
        graphics1.setFont(new Font("黑体",Font.BOLD,size));
        graphics1.drawString(string,x,y);
    }

}
